<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*,java.io.*,java.sql.*,java.text.*, dbAccess.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin Remove Admin</title>
<link rel="stylesheet" type="text/css" href="css_files/style.css" />
</head>
<body>
<table width="100%" height="34" border="1" align="left">
      <thead>
        <tr>
          <td width="80"><div align="center"><strong>Staff Id</strong></div></td>
          <td width="80"><div align="center"><strong>Staff First Name</strong></div></td>
          <td width="80"><div align="center"><strong>Staff Last Name</strong></div></td>
          
          
          
          
          
          <td width="80"><div align="center"><strong>Remove Patient Access</strong></div></td>
          
         </tr>
        </thead>
        <tbody>
        <%
        
        DbAccess access = new DbAccess();
		ResultSet rs;
		int Id = 0;
		String FirstName = "unknown";
		String LastName = "unknown";
		String emailAddress = "unknown";
		String gender = "unknown";
		String dateOfBirth= "unknown";
		String phone = "unknown";
		String homeAddress = "unknown";
		String password = "unknown";		
		
		rs = access.ExecuteSelect(access.connect(), "SELECT * FROM tbl_staff WHERE DocId='" + request.getParameter("docId") + "' AND IsDeleted='0' ");
		if (rs != null)
		{
			while (rs.next())
			{
				Id = rs.getInt("StaffId");
				FirstName = rs.getString("FirstName");
				LastName = rs.getString("LastName");
        	%>
				
        		<tr>
        			<td>
        				<%=Id%>
        			</td>
        			<td>
        				<%=FirstName%>
        			</td>
        			<td>
        				<%=LastName%>
        			</td>
        			
        			
        			
        			
        			
        			<td>        				
        			<form name="removeAdmin" method="post" action="docStaffAccessRemoveSave.jsp?staffId=<%=Id%>">
        					<input name="adminRemove" type="submit" id="adminRemove" value="Remove Access" />
        			</form>
        			</td>
        			
        		</tr>
        		
        	<%
			}
		}
        %>
        </tbody>
      </table>

</body>
</html>